﻿using Server.Constant;
using Server.Framework.Message;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Server.Message.Request
{
    /// <summary>
    /// Author: Leil
    /// Description: FileSendReq
    /// CreateTime: 2020/6/16 15:15:41
    /// </summary>
    [MessageAttr(MessageId.SEND_FILE)]
    public class FileSendReq : RequestBaseMessage
    {
        public File file;

        public override void Deserialize(byte[] buffer)
        {
            SendFile sendFile = SendFile.Parser.ParseFrom(buffer);
            file = sendFile.File;
        }
    }
}
